package dao.impl;

import java.sql.SQLException;

import org.apache.commons.dbutils.QueryRunner;

import dao.DeleteMmessageDao;
import util.C3P0Util;

public class DeleteMmessageDaoImpl implements DeleteMmessageDao {

	@Override
	public Integer RemoveTheAddress(Integer comment_id) {
		Integer i=0;
		QueryRunner qr = new QueryRunner(C3P0Util.getDataSource());	
		String sql="delete from product_comment where comment_id = ? ";
 
		try {
			i = qr.update(sql, comment_id);
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return i;
		
	}

}
